using System;
using System.ComponentModel.DataAnnotations;

namespace GADC.Domain
{
    public class Users
    {
        public  int ID { get; set; }
        public string Name { get; set; }
        public string Password { get; set; }
        public  string Email { get; set; }
        public  string Realname { get; set; }
        public  string Province { get; set; }
        public  string Department { get; set; }
        public  string Industry { get; set; }
        public  string Diploma { get; set; }
        public  string Address { get; set; }
        public  string Zipcode { get; set; }
        public  string Telephone { get; set; }

        public bool Ispermit { get; set; }
        public DateTime Registertime { get; set; }

        public UserLevel Level { get; set; }

        public string LevelName
        {
            get
            {
                return Level == null ? "" : Level.Name;
            }
        }
        
    }
}
